<?php
require_once("../common/db.php");

$id = $_POST['id'];
$params = $_POST['paramsV'];


//添加接口菜单
$sql = "update interface_params set is_must = '{$params['isMust']}',params_name = '{$params['paramsName']}',params_type = '{$params['paramsType']}',params_description = '{$params['paramsDesc']}' where id = {$id}";

//执行SQL
$db->query($sql);
if(!($db->affected_rows)){
	echo json_encode(array("success"=>false,"message"=>"更新失败"));
    exit();
}

echo json_encode(array("success"=>true));


?>